package com.school.manager.annotations;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.springframework.core.annotation.AliasFor;

import cn.hutool.core.util.StrUtil;

@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Like {
	
	/**
	 * 前%
	 * @return
	 */
	public boolean pre() default false;
	
	/**
	 * 字段名称
	 * @return
	 */
	@AliasFor("value")
	public String fieldName() default StrUtil.EMPTY;
	
	/**
	 * value = fieldName
	 * @return
	 */
	@AliasFor("fieldName")
	public String value() default StrUtil.EMPTY;
	
	/**
	 * 后%
	 * @return
	 */
	public boolean aft() default false;
}
